<?php namespace App\Http\Controllers\Api\User;

use App\Http\Controllers\Controller;
use App\Api\Models\Goods;
use App\Api\Auth\LoginService;

class GoodsController extends Controller{
    
    public function getGoodsInterface() {
        $res = with(new Goods())->getGoodsInterface();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    public function getStatus() {
        $res = with(new Goods())->getStatus();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    //商品列表
    public function goodslst() {
        $res = with(new Goods())->goodslst();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    //详情
    public function getGoodsInfo() {
        $res = with(new Goods())->getGoodsInfo();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    //结束订单的操作
    public function doReturn() {
        $res = with(new Goods())->doReturn();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
    //获取订单状态
    public function SumFee() {
        $res = with(new Goods())->SumFee();
        return json_encode($res,JSON_UNESCAPED_UNICODE);
    }
}